<template>
	<sw-form-frame v-model="visible" title="标签池" width="560" :type="formType" :loading="btnLoading" footer @submit="handleSubmitForm()">
		<el-form ref="form" size="medium" :model="formData" :rules="formRules" label-width="80px" v-loading="loading">
			<el-form-item label="标签名称" prop="name">
				<el-input v-model="formData.name"></el-input>
			</el-form-item>
			<el-form-item label="标签描述">
				<el-input type="textarea" v-model="formData.content"></el-input>
			</el-form-item>
		</el-form>
	</sw-form-frame>
</template>

<script>
import lodash from 'lodash';
import formMixins from '@/mixins/formMixins';
import { labelPoolDetail, addedLabelPool } from '@/api/data/tbSysLabel';
export default {
	mixins: [formMixins],
	data() {
		return {
			formName: '标签',
			formRules: {
				name: [{ required: true, message: '请输入标签名称', trigger: 'blur' }],
				content: [{ required: true, message: '请输入标签描述', trigger: 'blur' }]
			}
		};
	},
	computed: {
		detailData() {
			return eval(labelPoolDetail);
		},
		callFunction() {
			return eval(addedLabelPool);
		}
	}
};
</script>
